package com.polukeuro.app.client.events;

import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.user.client.ui.Widget;

public class ProviderNeedDataEvent extends GwtEvent<ProviderHandler> {

	private static Type<ProviderHandler> TYPE = new Type<ProviderHandler>();

	private String url;
	
	public ProviderNeedDataEvent(String url) {
		super();
		this.url = url;
	}

	public static Type<ProviderHandler> getType() {
		return TYPE;
	}
	
	@Override
	protected void dispatch(ProviderHandler handler) {
		handler.needData(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<ProviderHandler> getAssociatedType() {
		return TYPE;
	}

	public String getUrl() {
		return url;
	}

}
